﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="Search.ascx.cs" Inherits="CMS_Control_Search" %>
<style type="text/css">
    .search
    {
        padding-right: 0px;
        padding-left: 10px;
        padding-top: 5px;
        padding-bottom: 5px;
        width: 400px;
        float: left;
        position: relative;
    }
    .search .input
    {
        padding-top: 2px;
        height: 16px;
        width: 180px;
        border: 1px solid #0086C6;
        font-size: 14px;
        background: #fff url(images/search_btn.gif) no-repeat right 0;
    }
    .label
    {
        color: #ccc;
        position: absolute;
        left: 12px;
        top: 6px;
        display: block;
        height: 22px;
        line-height: 22px;
        font-size: 12px;
    }
    .ddll
    {
        position: absolute;
        left: 200px;
        top: 6px;
        display: block;
        height: 22px;
        line-height: 22px;
        font-size: 12px;
    }
    .ddl
    {
        position: absolute;
        left: 290px;
        top: 6px;
        display: block;
        height: 22px;
        line-height: 22px;
        font-size: 12px;
    }
    span.submit
    {
        cursor: pointer;
        position: absolute;
        left: 171px;
        top: 6px;
        width: 20px;
        height: 20px;
        text-indent: -999em;
    }
</style>

<script>
    function ClearLbl() {
        document.getElementById("for-keyword").style.display = "none";

    }
    function AddLbl(v) {
        if (v.value == "") {
            document.getElementById("for-keyword").style.display = "block";
        }
    }
    function S() {
        document.getElementById("spbt").childNodes[0].click();

    }
</script>

<div class="search">
    <input name="keyword" type="text" class="input" id="keyword" value="" style="float: left;"
        runat="server" onfocus="ClearLbl()" onblur="AddLbl(this)">
    <label for="keyword" id="for-keyword" class="label">
        我要搜索</label>
    <span class="submit" onclick="S()" id="spbt">
        <asp:LinkButton ID="LinkButton1" runat="server" OnClick="Sbtn_Click"></asp:LinkButton>
    </span>
    <asp:DropDownList ID="DDLType" runat="server" CssClass="ddll">
        
        <asp:ListItem Value="1">文章标题</asp:ListItem>
        <asp:ListItem Value="2">文章关键字</asp:ListItem>
        <asp:ListItem Value="3">文章摘要</asp:ListItem>
      
    </asp:DropDownList>
    <asp:DropDownList ID="DDL" runat="server" CssClass="ddl">
    </asp:DropDownList>
</div>
